import {Routes,RouterModule} from '@angular/router';
import {NgModule} from '@angular/core';
import {HomePageComponent} from './homepage.component';

@NgModule({
    imports: [
        RouterModule.forRoot([
            {path: '', component: HomePageComponent},
            {path: 'datatable', loadChildren:'app/demo/datatable/datatabledemo.module#DataTableDemoModule'},
            {path: 'checkbox', loadChildren:'app/demo/checkbox/checkboxdemo.module#CheckboxDemoModule'},

        ])
    ],
    exports: [RouterModule]
})

export class AppRoutingModule {}
